package com.itany.nmms.service;


import com.github.pagehelper.PageInfo;
import com.itany.nmms.entity.ProductType;
import com.itany.nmms.exception.ProductTypeExistException;
import com.itany.nmms.exception.RequestParameterErrorException;

import java.util.List;

/**
 * @author 黄衡熙
 * @version 1.0
 */
public interface ProductTypeService {

    void addType(String name) throws RequestParameterErrorException, ProductTypeExistException;

    PageInfo<ProductType> findPage(String pageNo,String pageSize);

    void modifyStatus(String id,String status) throws RequestParameterErrorException;

    void modifyType(String id,String name) throws RequestParameterErrorException, ProductTypeExistException;

    ProductType findById(String id) throws RequestParameterErrorException;

/**
 * 查询所有启用状态的商品类型
 */
List<ProductType> findEnabled();

/**
 * 查询所有商品类型
 */
List<ProductType>findAll();
}
